import { ref, computed } from 'vue'
import { defineStore } from 'pinia'
import { findNewAPI } from '@/apis/home'

export const useFindNewStore = defineStore('findNew', () => {
    const findNewList = ref([])
    const getFindNew = async () => {
        let res = await findNewAPI()
        if (res.code == 1) {
            findNewList.value = res.result
        }
    }

    return { findNewList, getFindNew }
})
